﻿using HelixToolkit.Wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Shapes;

namespace WpfApp1
{
    /// <summary>
    /// Window3D.xaml 的交互逻辑
    /// </summary>
    public partial class Window3D : Window
    {
        public Window3D()
        {
            InitializeComponent();

            ModelImporter importer = new ModelImporter();
            Model3DGroup model3DGroup=importer.Load("C:\\Users\\tiane\\Documents\\a.obj");


           ModelVisual3D modelVisual3D = new ModelVisual3D();
            modelVisual3D.Content= model3DGroup;
            View3d.Children.Add(modelVisual3D);
        }
    }
}
